//
//  YCInfoCell.m
//  LOLBox
//
//  Created by bb on 15-3-29.
//  Copyright (c) 2015年 Honey. All rights reserved.
//

#import "YCInfoCell.h"
#import "YCInfoModel.h"

@interface YCInfoCell ()
@property (weak, nonatomic) IBOutlet UIImageView *imgView;
@property (weak, nonatomic) IBOutlet UILabel *name;


@end

@implementation YCInfoCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)fillCellWithModel:(YCInfoModel *)model
{
    _imgView.image = [UIImage imageNamed:model.img];
    _name.text = model.name;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
